package com.shiro.shiro_demo.service.impl;

import com.shiro.shiro_demo.entity.CmfzAdmin;
import com.shiro.shiro_demo.entity.UserToken;
import com.shiro.shiro_demo.enums.LoginType;
import com.shiro.shiro_demo.mapper.CmfzAdminMapper;
import com.shiro.shiro_demo.service.LoginWay;
import org.apache.ibatis.type.LongTypeHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NomalLogin implements LoginWay {
    /**
     * 查询数据库方法
     */
    @Autowired
    private CmfzAdminMapper cmfzAdminMapper;
    //普通登录  账号密码登录
    private LoginType longType=LoginType.COMMON;

//    token作为这个类的成员变量，因为之后要用到token里面的账号及密码
    private UserToken userToken;

    @Override
    public LoginType loginType() {
        return null;
    }

    @Override
    public void initByToken(UserToken userToken) {

    }

    @Override
    public CmfzAdmin getUser() {
        return null;
    }

    @Override
    public boolean requriedPassword() {
        return false;
    }

    @Override
    public boolean isPasswordMatch() {
        return false;
    }
}
